<?php
class ui_a_error_dev extends ui {
	public function __construct($S, $param) {
		parent::__construct();
		
		$data_admin_article = new data_admin_article();
		$data = $data_admin_article->ls_error_dev();
		if (is_array($data)) {
			foreach ($data as $k=>$v) {
				$tmp = unserialize($v['vars']);
				
				if (is_array($tmp)) {
					$data[$k]['vars'] = '<pre>'.print_r($tmp, true).'</pre>';
				}
			}
		}
		
		
		$S->assign('data', $data);
	}
}